<?php
/**
 * Introduction: 专题表  special
 * @author: 杨陈鹏
 * @date: 2016/4/05 16:04
 * @email: yangchenpeng@cdlinglu.com
 */

namespace Common\Model;


use Think\Model;

class SpecialModel extends Model
{

    //定义数据库连接信息
    protected $connection;
    //定义模型字段
    protected $fileds = [
        'id',
        'title',
        'content',
        'description',
        'create_time',
        'likes',
        'views',
        'comment',
        'shares',
        'thumb',
    ];
    //定义表名
    protected $tableName = 'special';

    /**
     * 初始化
     */
    public function _initialize()
    {
        $this->connection = C('Databaese');
    }

}